package com.huangguolin.cloud.file.entity;

import java.io.Serializable;

public class SearchFileEntity implements Serializable {
    /**
     * 查询文件名称
     */
    private String fileName;

    private String[] fileNameArray;

    private String parentUuid;

    private String fileUuid;

    private String[] parentUuidArray;

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public String[] getFileNameArray() {
        return fileNameArray;
    }

    public void setFileNameArray(String[] fileNameArray) {
        this.fileNameArray = fileNameArray;
    }

    public String getParentUuid() {
        return parentUuid;
    }

    public void setParentUuid(String parentUuid) {
        this.parentUuid = parentUuid;
    }

    public String[] getParentUuidArray() {
        return parentUuidArray;
    }

    public String getFileUuid() {
        return fileUuid;
    }

    public void setFileUuid(String fileUuid) {
        this.fileUuid = fileUuid;
    }

    public void setParentUuidArray(String[] parentUuidArray) {
        this.parentUuidArray = parentUuidArray;
    }

    @Override
    public String toString() {
        return "SearchFileEntity{" +
                "fileName='" + fileName + '\'' +
                ",fileUuid='" + fileUuid + '\'' +
                ", parentUuid='" + parentUuid + '\'' +
                '}';
    }

    public void deal(){
        if (!"undefine".equals(this.fileName)){
            this.fileNameArray = this.fileName.split(",");
        }
    }
}
